<div class="btn-group">
	<a class='btn btn-primary'> 会员中心 </a>
</div>

<div class="clearfix"><p></p></div>
<form class="form-inline" action="<?php echo site_url($this->class.'/search'); ?>" method="GET">
	手机号码/昵称：<input name="uname" type="text" title="搜索页面" value="<?php echo isset($_GET['uname'])?$_GET['uname']:""; ?>" placeholder="请输入手机号码/昵称">
	<p></p>
	<div class="control-group">
		<div class="controls">
			<label for="title" class="control-label">注册时间:</label>
			<div class="input-append date timepicker" id="datetimepicker1">
				<input type="text" placeholder="起始时间"  value="<?php if(!empty($_GET['starttime'])){echo $_GET['starttime'];} ?>" id="ts" name="starttime" data-date-format="yyyy-mm-dd hh:ii:ss">
				<span class="add-on"><i class="icon-th"></i></span>
			</div>

			<div class="input-append date timepicker" id="datetimepicker2">
				<input type="text" placeholder="结束时间" value="<?php if(!empty($_GET['endtime'])){echo $_GET['endtime'];} ?>" id="te" name="endtime" data-date-format="yyyy-mm-dd hh:ii:ss">
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
	</div>
<input class="btn" type="submit" value="检索">
</form>
<div class="clearfix"><p></p></div>
<!--<form class="form-inline" action="--><?php //echo site_url($this->class.'/excel'); ?><!--" method="GET">-->
<!--<input name="q" type="hidden"  value="--><?php //echo $this->input->get('q',TRUE); ?><!--" placeholder="请输入手机号码/昵称">-->
<!--<input class="btn" type="submit" value="导出">-->

</form>

<?php include_once 'inc_ui_limit.php'; ?>

<div class="clearfix"></div>
<p></p>
<div class="boxed">
	<div class="boxed-inner seamless">
		<table class="table table-striped table-hover select-list">
			<thead>
				<tr>
					<th class="width-small"><input id='selectbox-all' type="checkbox" > </th>
					<th>昵称</th>
					<th>手机</th>
					<th>性别</th>
					<th>时间</th>
				</tr>
			</thead>
			<tbody class="sort-list">
				<?php foreach ($list as $v):?>
					<tr data-id="<?php echo $v['id'] ?>" >
						<td><input class="select-it" type="checkbox" value="<?php echo $v['id']; ?>" ></td>
					<td> <?php echo $v['uname'] ?> </td>
					<td> <?php echo $v['phone'] ?> </td>
					<td> <?php switch($v['sex']){case 1:echo '男';break;case 2: echo '女';break;default: echo "";break;} ?> </td>
					<td> <?php echo  date("Y/m/d H:i:s",$v['timeline']); ?> </td>
					<td style="text-align:right;">
						<div class="btn-group">
						<?php include 'inc_ui_audit.php'; ?>
<!--							<a class='btn btn-danger btn-small btn-del' href="#" data-id="--><?php //echo $v['id'] ?><!--" title=" --><?php //echo lang('del') ?><!--"> <i class="fa fa-times"></i></a>-->
						</div>
					</td>
				</tr>
				<?php endforeach;?>
			</tbody>
		</table>
	</div>
</div>

<!--<div class="btn-group">-->
<!--	<a id='select-all' class='btn' href="#"> <i class=""></i> --><?php //echo lang('select_all') ?><!-- </a>-->
<!--	<a id='unselect-all' class='btn hide' href="#"> <i class=""></i> --><?php //echo lang('unselect') ?><!-- </a>-->
<!--	<a id="btn-del" class='btn btn-danger' href="#"> <i class="fa fa-times"></i> --><?php //echo lang('del') ?><!-- </a>-->
<!--</div>-->

<?php echo $pages; ?>

<script>
require(['adminer/js/ui','bootstrap-datetimepicker.zh'],function(ui){
	$('.timepicker').datetimepicker({'language':'zh-CN','format':'yyyy/mm/dd hh:ii:ss','todayHighlight':true});
	acount = {
		url_del: "<?php echo site_url('acount/delete'); ?>"
		,url_sortid: "<?php echo site_url('acount/sortid'); ?>"
		,url_audit: "<?php echo site_url('acount/audit'); ?>"
	};

	ui.btn_delete(acount.url_del);		// 删除
	ui.sortable(acount.url_sortid);	// 排序
	ui.btn_audit(acount.url_audit);// 审核
});
</script>
